package com.example.demo.mapper;

import com.example.demo.model.Category;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CategoryMapper {
    
    List<Category> getCategoriesByLevel(Integer level);
    
    List<Category> getChildCategories(Integer parentId);
    
    List<Category> getCategoryTree();
    
    List<Category> searchCategories(String keyword);
    
    List<Category> getCategoryPath(Integer categoryId);
    
    List<Category> getHotCategories();
    
    Category getCategoryById(Integer id);
}